package com.wxb.qd.utils;

import com.wxb.qd.dto.ExcelMessage;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class MyMessageSender {
    @Resource
    private RabbitTemplate rabbitTemplate;

    public void sendExcelPath(String exchange, String routingKey, ExcelMessage excelMessage) {
        rabbitTemplate.convertAndSend(exchange, routingKey, excelMessage);
    }

}
